

package com.seed.marketed.common.logtrack.init;



import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.TtlMDCAdapter;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;


public class TtlMDCAdapterInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> {
   
	private static final Logger logger = LoggerFactory.getLogger(TtlMDCAdapterInitializer.class);
	@Override
    public void initialize(ConfigurableApplicationContext applicationContext) {
		logger.info("初始化TtlMDCAdapter");
        //加载TtlMDCAdapter实例
        TtlMDCAdapter.getInstance();
    }
}